//
//  CLDeviceIOS.h
//
//
//  Created by xinxiang on 13-1-17.
//  Copyright (c) 2013年 xinxiang. All rights reserved.
//  iOS设备信息工具类

#import <Foundation/Foundation.h>
#import "CLWifiMsgModel.h"

typedef NS_ENUM(NSInteger, CLDeviceIOSLanguageType){
    CLDeviceIOSLanguageTypeEnglish = 0,
    CLDeviceIOSLanguageTypeChinese
};

@interface CLDeviceIOS:NSObject

@property (nonatomic, copy) NSString *token;
@property (nonatomic, copy) NSString *mac;
@property (nonatomic, copy) NSString *sys_version;
@property (nonatomic, copy) NSString *lang;
@property (nonatomic, copy) NSString *net_type;
@property (nonatomic, assign) BOOL saveToPhotos;     //拍照自动保存到相册
@property (nonatomic, assign) BOOL is_onlone;
@property (nonatomic, readonly)BOOL locServerEnable;
@property (nonatomic, assign) CLDeviceIOSLanguageType languageType;

+ (CLDeviceIOS *) single;

+ (void)setForNew;
- (BOOL)IsEnableWIFI;
+ (BOOL)IsEnable3G;
- (BOOL)IsEnableNetwork;
- (BOOL)isEnableLocationServer;
- (NSString *)macAddress;
- (NSString *)deviceInfo;
// MAC 加密
- (NSString *)deviceInfoEncode;
// 获取iOS设备型号
- (NSString *)deviceModel;
+ (NSString *)wifiMacEncode;
// 当前设备使用wifi的mac地址经过asc加密后的字符串
+ (NSString *)wifiMac;
// 获取到手机WIFI
+(CLWifiMsgModel *)getiphoneWifi;

// 语言判断统一接口，由于iOS升级会造成语言判断条件改变，因此进行统一
+ (NSString *)deviceIOSLanguage;
+ (BOOL)isChineseLanguageType;


- (void) aboutCall;
- (void)getCarrierInfo;

// APP 信息
@property NSInteger app_build;
@property (nonatomic, copy) NSString *app_version;

// 测试
/** 设备ID*/
@property (nonatomic, copy) NSString *device_id;

@end
